

<div class="x-body">


    </div>
    <xblock>

        <!--<button class="layui-btn" onclick="x_admin_show('添加用户','./member-add.html',600,400)"><i class="layui-icon"></i>添加</button>-->
        <span class="x-right" style="line-height:40px">共有数据：{$list['count']} 条</span>
    </xblock>
    <table class="layui-table x-admin">
        <thead>
        <tr>
            <th>
                <div class="layui-unselect header layui-form-checkbox" lay-skin="primary"><i class="layui-icon">&#xe605;</i></div>
            </th>
            <th>序号</th>
            <th>UID</th>
            <th>用户信息</th>
            <th>推荐人</th>
            <th>时间</th>
            <th>是否赌王</th>
            <th>其他</th>
            <th>操作</th>
        </thead>
        {notempty name='list.list'}
        <tbody>
        {volist name='list.list' id='vo' key="k"}
        <tr>

            <td>
                <div class="layui-unselect layui-form-checkbox" lay-skin="primary" data-id="{$vo.id}"><i class="layui-icon">&#xe605;</i></div>
            </td>
            <td>{$k}</td>
            <td>{$vo.id}</td>
            <td>
                <div><label>用户名:</label><span>{$vo.username}{if condition ="$vo.is_company eq 1"}<span style="color: #f56c6c">(公司账户)</span>{/if}</span></div>
                <div>  <label>手机:</label><span>{$vo.mobile|default='未绑定'}</span></div>
                <div> <label>等级:</label><span>{$vo.level.level_name}</span></div>
                <div>  <label>设备号:</label><span>{$vo.uuid|default=''}</span></div>
                <div>  <label>常用地址:</label><span>{$vo.always_address|default=''}</span></div>

            </td>
            <td>{$vo.leader_nickname}</td>
            <td>    <div><label>注册时间:</label><span>{$vo.create_time|date='Y-m-d H:i:s',###}</span></div>

                    <div>  <label>修改密码时间:</label><span>  {notempty name='vo.up_pwd_time'} {$vo.up_pwd_time|date='Y-m-d H:i:s',###}{else/}{/notempty}</span></div>
                    <div> <label>最后登录时间:</label><span> {notempty name='vo.last_login_time'} {$vo.last_login_time|date='Y-m-d H:i:s',###}{else/}{/notempty}</span></div>
                <div>  <label>OTC限制交易时间:</label><span>  {notempty name='vo.penalty_time'} {$vo.penalty_time|date='Y-m-d H:i:s',###}{else/}{/notempty}</span></div>
            </td>


            <td>
                {eq name="vo.is_king" value="0"}
                否
                {else/}
                是
                {/eq}
            </td>
            <td>

                <div><label>封号:</label><span>  {eq name="vo.is_black" value="0"}
                    否
                {else/}
                    是
                {/eq}</span></div>
                <div><label>是否商家:</label><span>  {eq name="vo.is_shop" value="0"}
                否
                {else/}
                是
                {/eq}</span></div>
                <div><label>游戏返点:</label><span>  {eq name="vo.game_return" value="0"}
                否
                {else/}
                是
                {/eq}</span></div>
            </td>

            <!--<td class="td-status">-->
                <!--<span class="layui-btn layui-btn-normal layui-btn-mini">已启用</span></td>-->
            <td class="td-manage">
                <!--<a onclick="member_stop(this,'10001')" href="javascript:;"  title="启用">-->
                    <!--<i class="layui-icon">&#xe601;</i>-->
                <!--</a>-->


                <div style="margin-bottom: 5px;"><label></label><span>   <ob_link><a title="编辑" style="color: #0a8cd2"  href="{:url('memberEdit', array('id' => $vo['id']))}" >
                    编辑
                </a></ob_link></span></div>
                <div style="margin-bottom: 5px;"><label></label><span>   <ob_link><a title="邀请图谱" style="color: #0a8cd2"  href="{:url('member_level', array('id' => $vo['id']))}" >
                    邀请图谱
                </a></ob_link></span></div>
                <div style="margin-bottom: 5px;"><label></label><span>   <ob_link><a title="支付方式" style="color: #0a8cd2"  href="{:url('userPay/user_pay', array('user_id' => $vo['id']))}" >
                    支付方式
                </a></ob_link></span></div>

            </td>
        </tr>
        {/volist}
        {else/}
        <tbody><tr class="odd"><td colspan="12" class="text-center" valign="top">{:config('empty_list_describe')}</td></tr></tbody>
        {/notempty}

        </tbody>
    </table>
    <div class="page">
        {notempty name='list.list'}   {$list['list']->render()}{/notempty}
    </div>

</div>
<script>
    layui.use('laydate', function(){
        var laydate = layui.laydate;

        //执行一个laydate实例
        laydate.render({
            elem: '#start' //指定元素
        });

        //执行一个laydate实例
        laydate.render({
            elem: '#end' //指定元素
        });
    });




    function setCompany () {

        var data = tableCheck.getData();
        if(data.length==0){
            layer.msg('请选择会员');
            return
        }

        layer.confirm('确认改为公司账号吗？', function (index) {
            //捉到所有被选中的，发异步进行删除
            //监听提交
            var url = "{:url('update_info')}";

            $.post(url, {ids: data, is_company: 1}, function (d) {
                if (d.code == 1) {

                    window.location.reload();

                } else {
                    layer.msg(d.msg);

                }
            }, 'json');


        });
    }

    //导出功能
    $(".export").click(function(){

        window.location.href = searchFormUrl($(".export"));
    });
</script>
<script>var _hmt = _hmt || []; (function() {
    var hm = document.createElement("script");
    hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(hm, s);
})();</script>
</body>

</html>